const lodash = require('lodash')
const express = require('express')
const sum = require('./stuName.js')
const server = express()

// console.log(sum)
server.get('/api/rand', (req, res) => {
  const random = lodash.random(0, 10)
  const student = sum.stuNameArr[random]
  res.send(student)
})

server.listen(3000, () => {
  console.log('启动')
})